package com.demo;

import org.apache.ibatis.session.SqlSession;
import org.apache.ibatis.session.SqlSessionFactory;
import org.mybatis.spring.SqlSessionTemplate;
import org.mybatis.spring.support.SqlSessionDaoSupport;

/**
 * @author tuzhijin
 * @version Id: BaseDao.java, v 0.1 2021/4/15 上午10:52 tuzhijin Exp $$
 */
public class BaseDao extends SqlSessionDaoSupport {

    public BaseDao() {
        super();
    }

    @Override
    public void setSqlSessionFactory(SqlSessionFactory sqlSessionFactory) {
        super.setSqlSessionFactory(sqlSessionFactory);
    }

    @Override
    protected SqlSessionTemplate createSqlSessionTemplate(SqlSessionFactory sqlSessionFactory) {
        return super.createSqlSessionTemplate(sqlSessionFactory);
    }

    @Override
    public void setSqlSessionTemplate(SqlSessionTemplate sqlSessionTemplate) {
        super.setSqlSessionTemplate(sqlSessionTemplate);
    }

    @Override
    public SqlSession getSqlSession() {
        return super.getSqlSession();
    }

    @Override
    public SqlSessionTemplate getSqlSessionTemplate() {
        return super.getSqlSessionTemplate();
    }

    @Override
    protected void checkDaoConfig() {
        super.checkDaoConfig();
    }

}
